﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.Designer.Event.UI
{
    /// <summary>
    /// 选中一个对象的事件
    /// </summary>
    public class UISelectObjectEvent : UIEvent
    {
        /// <summary>
        /// 选中的对象
        /// </summary>
        public object SelectedObject { get; set; }

        public Guid SelectedObjectId{get;set;}

        public string SelectedObjectType { get; set; }

        /// <summary>
        /// 选中一个对象的事件,
        /// selectedObjectType通过MetadataUtil.GetTypeString来获取
        /// </summary>
        /// <param name="selectedObjectId"></param>
        /// <param name="selectedObjectType"></param>
        /// <param name="selectedObject"></param>
        public UISelectObjectEvent(Guid selectedObjectId, string selectedObjectType, object selectedObject)
        {
            SelectedObjectId = selectedObjectId;
            SelectedObjectType = selectedObjectType;
            SelectedObject = selectedObject;
        }
    }
}
